package net.thxjj.mobileServer.dao;

import net.thxjj.mobileServer.entity.DeviceLog;
import net.thxjj.mobileServer.entity.GenieOauthBean;
import net.thxjj.sitermodel.MobileUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface GenieOauthDao {
    public GenieOauthBean getGenieOauth(@Param("code")String code,@Param("refresh_token")String refresh_token);
    public GenieOauthBean getGenieOauthByAcccessToken(@Param("access_token")String access_token);
    public void updateAccessToken(@Param("id")long id,@Param("access_token")String access_token,@Param("refresh_time")long refresh_time);
    public Long getCountbyUsername(@Param("username")String username);
    public MobileUser getUserBean(@Param("username")String username, @Param("password")String password, @Param("pid")String pid);
    public void addOauthBean(GenieOauthBean genieOauthBean);
    public DeviceLog getDevLogSocketStatus(@Param("device_id")String device_id);
}
